package com.hxwang.tanke;

import java.util.Objects;

/**
 * <H2> </H2>
 *
 * @author hxwang
 * @data 2022/12/3
 */

public class Main {
    public static void main(String[] args) throws InterruptedException {
        TankFrame tankFrame = new TankFrame();
        int initTankCount = Integer.parseInt((String) Objects.requireNonNull(PropertyMgr.get("initTankCount")));

        // 初始化敌方坦克
        for (int i = 0; i < initTankCount; i++) {
            tankFrame.tanks.add(new Tank(50 + i * 50, 200, 5, Dir.DOWN, Group.BAD, tankFrame));
        }
        while (true) {
            // 每隔50毫秒刷新一次
            Thread.sleep(20);
            tankFrame.repaint();
        }
    }
}
